package ru.study.thinkin.chapter8;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;

class Person {
	private static long counter = 0; 
	private long id = counter++;
	public Person () {
		
	}
	@Override
	public String toString() {
		return "Person [id=" + id + "]";
	}
		
}
public class Test8 {

	public static void main(String[] args) {
		Person[] pp = new Person[]{new Person(),new Person(),new Person()};
		System.out.println(Arrays.toString(pp));
		
		  Collection inx = new ArrayList();
		
	}
}
